package demo1;

public class Dog extends Animal1 implements Animals{
    public Dog(String name, int age){
        this.name = name;
        this.age = age;
    }
    @Override
    public void say(){
        System.out.println(name + "汪汪叫");
    }
    @Override
    public void eat() {
        System.out.println(name + "吃狗粮");
    }
}
